package com.jiyun.service;

import com.jiyun.model.*;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Author 朱庆辉
 * @Date 2023/7/28 16:05
 * @Email 1018276870@qq.com
 */
@FeignClient("day09-zhuqinghui-course-dev")
public interface CourseService {
    @GetMapping("course/findAllNum")
    public List<Upvote> findAllNum();

    @GetMapping("course/saveCourse")
    public String saveCourse(@RequestParam("name") String name);

    @PostMapping("course/findAllLiMit")
    public List<Course> findAllLiMit(@RequestBody CourseDto courseDto);

    @PostMapping("course/findAllTimie")
    public List<Course> findAllTimie();

    @GetMapping("course/labelAll")
    public String labelAll(@RequestParam(value = "name") String name);

    @GetMapping("course/findById")
    public Course findById(@RequestParam(value = "id") Integer id);
}
